package com.baizhi;

public enum ExceprtionCodeEnum {
    /**
     * 设置枚举值
     */
    ORDER_ERROR(1001,"订单错误"),
    CATEGORY_ERROR(1002,"类别查询失败"),
    VALID_ERROR(1005,"属性校验异常");

    /**
     * 定义属性
     */
    private Integer code;
    private String msg;

    /**
     * 构造方法
     */
    ExceprtionCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ExceprtionCodeEnum() {
    }

    /**
     * get set
     */
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
